scale
Scales the transformation matrix by a given factor in both x and y directions.
Return
A new affine transformation matrix with the scaling applied.
Parameters
factor
The scaling factor to apply to both x and y dimensions.
Scales the transformation matrix by a given vector. The x and y components of the vector represent the scaling factors in the respective directions.
Return
A new affine transformation matrix with the scaling applied.
Parameters
vector
The vector to scale the matrix.
Scales the transformation matrix by given factors in the x and y directions.
Return
A new affine transformation matrix with the scaling applied.
Parameters
x
The scaling factor for the x-direction.
y
The scaling factor for the y-direction.